package easymall.po;

import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection="orderitem")
public class OrderItem {
	@Id 
	private ObjectId _id;
	private String order_id;
	public OrderItem(){};
	public OrderItem(String order_id, String product_id, int buynum) {
		super();
		this.order_id = order_id;
		this.product_id = product_id;
		this.buynum = buynum;
	}
	private String product_id;
	private int buynum;
	public String getOrder_id() {
		return order_id;
	}
	public void setOrder_id(String order_id) {
		this.order_id = order_id;
	}
	public String getProduct_id() {
		return product_id;
	}
	public void setProduct_id(String product_id) {
		this.product_id = product_id;
	}
	public int getBuynum() {
		return buynum;
	}
	public void setBuynum(int buynum) {
		this.buynum = buynum;
	}

}
